\documentclass[a4paper,10pt]{article}
%-------------------------------------------------------------------
% Document specifics
\usepackage{setspace}												% For spacing, e.g., double line spacing, line spread
\usepackage{enumitem}												% Controls layout of itemize, enumerate, description
\usepackage{footnote}												% Improve on LaTeX's footnote handling
%\usepackage[margin=1in]{geometry}					% Flexible and complete interface to document dimensions
\usepackage{fullpage}												% Set all page margins to 1.5cm
\usepackage{changepage}											% Commands to change the page layout in the middle of a document
\usepackage[table]{xcolor}									% Provides easy driver-independent access to several kinds of color 
\definecolor{airforceblue}{rgb}{0.36, 0.54, 0.66}
\definecolor{olivine}{rgb}{0.6, 0.73, 0.45}
\usepackage{colortbl}												% Allows rows and columns to be coloured
\usepackage{nameref}												% Defines a \nameref command, that makes reference to an object
\usepackage{titling}												% Provides control over the typesetting of the \maketitle command 
\usepackage[titletoc, title]{appendix}			% For appendices
%-------------------------------------------------------------------
% Tables and numbers
\usepackage[flushleft]{threeparttable}			% Tables with captions and notes with the same width
\usepackage{threeparttablex}								% Minor improvements over threeparttable
\usepackage{dcolumn}												% Align on the decimal point of numbers in tabular columns
\usepackage{multirow}												% Create tabular cells spanning multiple rows
\usepackage{longtable}											% Tables that continue to the next page
\usepackage{booktabs}												% Enhance quality of tables
\usepackage{tabularx}												% Tabulars with adjustable-width columns
\usepackage{mathrsfs, amsfonts, amssymb, amsmath}					% RSFS fonts in maths, Set of fonts for use in mathematics
%\usepackage{slashbox}											% Produces tabular cells with diagonal lines
\usepackage{siunitx}												% Set of tools for authors to typeset quantities in a consistent way
\usepackage{array}													% Extending the array and tabular environments
\usepackage[sc]{mathpazo}										% Fonts to typeset mathematics to match Palatino
%-------------------------------------------------------------------
% Floats in general
\usepackage{adjustbox}											% Provides several macros to adjust boxed content
\usepackage{graphicx}												% Provides a key-value interface for \includegraphics
\usepackage{float}													% Improves interface for floating objects
\usepackage[skip = 0pt]{caption}						% Customizes the captions in floating environments
\captionsetup{justification=centering}
\DeclareCaptionLabelFormat{Sfignum}{#1~S#2}
\captionsetup[table]{
  labelfont=bf,
  name=Table
}

\captionsetup[figure]{
  labelfont=bf,
  name=Figure
}

\captionsetup{justification=centering}			% Captions setup
\usepackage{subcaption}											% Supports for sub-captions
\usepackage{rotating}												% Rotation tools, including rotated full-page floats
\usepackage{pdflscape}											% Makes landscape pages display as landscape
\usepackage{lscape}													% Place selected parts of a document in landscape
\usepackage{afterpage}											% Executes command after the next page break
\usepackage{tikz}													  % For complex graphs in LaTeX
\usetikzlibrary{positioning}
%\tikzset{mynode/.style={draw,text width=1in,align=center}}
\tikzset{mynode/.style={draw,align=center}}
%\usepackage[nolists,heads]{endfloat}								% Moves floats to the end
%\usepackage[all]{hypcap}											      % Adjusts the anchors of captions
%\usepackage{ctable}												        % Flexible typesetting of table and figure floats using key/value directives
%-------------------------------------------------------------------
% Languages, encoding 
\usepackage[english]{babel}								              % Multilingual support for Plain TeX or LaTeX
\usepackage[utf8]{inputenc}											        % Accept different input encodings
\usepackage[autostyle, english = american]{csquotes}		% Provides advanced facilities for inline and display quotations
\usepackage[T1]{fontenc}											          % Standard package for selecting font encodings
%-------------------------------------------------------------------
% MISC
\usepackage{lipsum}													% Easy access to the Lorem Ipsum dummy text.
\usepackage[plainpages=false,pdfpagelabels]{hyperref}				% Handles cross-referencing commands in LaTeX
\usepackage{url}													% Verbatim with URL-sensitive line breaks
\urlstyle{rm}
%-------------------------------------------------------------------
% References
%\usepackage{apacite}												% APA references thingy
\usepackage[natbib, style=apa]{biblatex}							% For better citation
\addbibresource{gender.bib} 										% Replace this with your actual bibfile name
%-------------------------------------------------------------------
% Other document setups
%%% Misplaced noalign
\makeatletter\let\expandableinput\@@input\makeatother
%%% Quotes multilingual 
\MakeOuterQuote{"}
%%% Matrices
\setcounter{MaxMatrixCols}{10}
%%% New theorem environments
\newtheorem{acknowledgement}{Acknowledgement}
\newtheorem{algorithm}{Algorithm}
\newtheorem{axiom}{Axiom}
\newtheorem{case}{Case}
\newtheorem{claim}{Claim}
\newtheorem{conclusion}{Conclusion}
\newtheorem{condition}{Condition}
\newtheorem{conjecture}{Conjecture}
\newtheorem{corollary}{Corollary}
\newtheorem{criterion}{Criterion}
\newtheorem{definition}{Definition}
\newtheorem{example}{Example}
\newtheorem{exercise}{Exercise}
\newtheorem{lemma}{Lemma}
\newtheorem{notation}{Notation}
\newtheorem{problem}{Problem}
\newtheorem{proposition}{Proposition}
\newtheorem{remark}{Remark}
\newtheorem{solution}{Solution}
\newtheorem{assumption}{Assumption}
%%% New environment for landscape tables    
\newenvironment{ltable}{\begin{landscape}\begin{table}}{\end{table}\end{landscape}}
\newenvironment{ltablelong}{\begin{landscape}\begin{longtable}}{\end{longtable}\end{landscape}}
%%% New environment for column type (hide columns)
\newcolumntype{H}{>{\setbox0=\hbox\bgroup}c<{\egroup}@{}}
\newcolumntype{P}[1]{>{\centering\arraybackslash}p{#1}}
\newcolumntype{M}[1]{>{\centering\arraybackslash}m{#1}}
%%% Double perpendicular symbol (for independence)
\newcommand\independent{\protect\mathpalette{\protect\independenT}{\perp}}
\def\independenT#1#2{\mathrel{\rlap{$#1#2$}\mkern2mu{#1#2}}}
%%% For raw type of inputs (good for esttab command in Stata)
\makeatletter
\newcommand\primitiveinput[1]
{\@@input #1 }
\makeatother
%%% Numbering within sections (Tables)
% \numberwithin{table}{section}
%%% Define colors
\definecolor{darkblue}{rgb}{0,0,.4}
\definecolor{winered}{RGB}{198,13,37}
\hypersetup{colorlinks=true, 
			breaklinks=true, 
			citecolor=winered, 
			linkcolor=darkblue, 
			menucolor=darkblue, 
			urlcolor=darkblue}
%%% Inserting Stata output (Stars)
\def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi}

%-----------------------------------------------------------------
% BEGIN ----------------------------------------------------------
%-----------------------------------------------------------------
%\setlength{\droptitle}{-5em}   										% This is your set screw
\title{Can personalized digital counseling improve consumer search for modern contraceptive methods? \\ Supplementary Materials}
\author{Susan Athey \and Katy Bergstrom \and Vitor Hadad \and Julian C. Jamison \and Berk Özler \and Luca Parisotto \and  Julius Dohbit Sama}
%-----------------------------------------------------------------
\begin{document}
%-----------------------------------------------------------------
\maketitle

\newpage


%% Supplementary materials

\newpage
\appendix
%--------------------------------------------------------------------------%
\counterwithin{figure}{section}
\renewcommand{\thefigure}{\arabic{figure}}
\counterwithin{table}{section}
\renewcommand{\thetable}{\arabic{table}}

\captionsetup[table]{
  labelfont=bf,
  labelformat=Sfignum,
  name=Table
}

\captionsetup[figure]{
  labelfont=bf,
  labelformat=Sfignum,
  name=Figure
}

\section{Supplementary Materials}

\begin{table}[H]
  \hspace*{-1.6cm}
  \centering
  \begin{threeparttable}
    \centering
    \footnotesize
    \caption{Client characteristics.}
    \input{tables/TabS1-descriptives_pilot_fup_data.tex} 
    \label{tab:descriptives_dhs_pilot_fup}
  \begin{tablenotes}
    \footnotesize
    \item Note: This table shows client characteristics in the study sample (Pilot sample), the follow-up interview sample - which was recruited during the adaptive phase of the study, immediately after the pilot -, and the DHS 2018 Yaoundé Stratum.
  \end{tablenotes}
  \end{threeparttable}
\end{table}

\newpage

\begin{table}[H]
  \centering
  \begin{threeparttable}
    \centering
    \small
    \caption{Method mix.}
    \input{tables/TabS2-method-mix.tex} 
    \label{tab:method-mix}
  \begin{tablenotes}
    \small
    \setlength\labelsep{0pt}
    \item Notes: This table shows the method mix amongst the clients who visit the hospital included in the study sample; columns 1 and 2 show the number and fraction of clients who are currently using each method at the time of their first consultation; columns 2 and 3 shows which method the 442 clients had in mind during their consultation, i.e. the method they wanted to adopt or renew without discussing other methods (see Figure 1); column 5 and 6 show the method that was ultimately adopted by the clients, noting that LAM and condoms can be used concurrently with other methods and are thus counted as the method adopted when they are used as the primary method of contraception; the IUD refers to the copper IUD, LAM refers to lactational amenorrhea method, traditional method or other encompasses all other methods and primarily consists of the calendar method and coitus interruptus method.
  \end{tablenotes}
  \end{threeparttable}
\end{table}
  
\newpage

\begin{table}[H]
\centering
  \begin{threeparttable}
    \centering
    \small
      \caption{Balance table over LARC prices}
    \input{tables/TabS3-balance-pd.tex} 
    \label{tab:balance-prices}
    \begin{tablenotes}
      \small
      \setlength\labelsep{0pt}
      \item Notes: the ‘Difference’ columns show the p-value from a t-test of the difference in means between the two indicated groups; the F-test of joint-orthogonality (F-stat/p-value) tests that all the coefficients are jointly equivalent to zero when regressing the set of variables shown in this table on a group indicator; Standard deviation in parentheses for non-binary variables. \end{tablenotes}
  \end{threeparttable}
\end{table}

\newpage 
\begin{table}[H]
	\centering
		\begin{threeparttable}
		  \centering
		  \small
		  	\caption{Balance table over the counselling style}
			\input{tables/TabS4-balance-view.tex} 
		 	\label{tab:balance-view}
			\begin{tablenotes}
			  \small
			  \setlength\labelsep{0pt}
			  \item Notes: the ‘Difference’ columns show the p-value from a t-test of the difference in means between the two indicated groups; the F-test of joint-orthogonality (F-stat/p-value) tests that all the coefficients are jointly equivalent to zero when regressing the set of variables shown in this table on a group indicator; Standard deviation in parentheses for non-binary variables. 
			\end{tablenotes}
		\end{threeparttable}
\end{table}

\newpage
\begin{table}[H]
  \centering
  \small
  \caption{Prices in nearby Health Centers}\label{tab:prices_nearby}
  \begin{adjustbox}{max width=\textwidth}
    \begin{threeparttable}
    \input{tables/TabS5-prices_nearby.tex}
      \begin{tablenotes}
          \setlength\labelsep{0pt}
          \footnotesize
          \item Notes: This table presents prices of LARCs, SARCs, Removals and Consultation cost in health centers that are close to the Yaoundé Gynaecology, Obstetrics and Pediatrics Hospital (HGOPY); The data was personally collected by a nurse consultant with Family Planning experience; column (1) uses the highest price that was offered to clients during the study at HGOPY; Distance to HGOPY is in meters and is calculated using \href{https://developers.google.com/maps/documentation/distance-matrix/overview?hl=en}{Gooogle's Distance Matrix API}; Walking and driving time are measured using predictive traffic information.
      \end{tablenotes}
      \end{threeparttable}
  \end{adjustbox}
\end{table}

\newpage
\begin{table}[H]
  \centering
  \caption{Rankings produced by the app's internal algorithm}
  \label{tab:app_rankings}
    \begin{threeparttable}
    \input{tables/TabS6-rankings.tex}
    \begin{tablenotes}
    \footnotesize 
    \setlength\labelsep{0pt}
    \item Notes: This table presents the positions produced by the app's internal algorithm; Each column represents the percent of occurrence of each contraceptive within each position.
    \end{tablenotes} 
    \end{threeparttable}
\end{table}


\newpage
\begin{table}[H]
  \centering
    \begin{threeparttable}
      \caption{Impacts Over Time -- Method at 16 week follow-up survey}
      \label{tab:impacts_over_time_16}
        \begin{tabular}{@{}l*{8}{c}@{}}
          \toprule
          \toprule
          & \multicolumn{8}{c}{Method at 16 week follow-up survey} \\ \cmidrule{2-9}
          \primitiveinput{tables/TabS7-adoption-matrix-complete.tex}                                              
          \bottomrule
          \bottomrule
      \end{tabular}
      \begin{tablenotes}
          \setlength\labelsep{0pt}
          \footnotesize
          \item \textit{Notes}: The data shown in this table covers a sample of clients enrolled in the adaptive experiment following this study between the $19^{th}$ of January 2021 and the $29^{th}$ of June 2022.
      \end{tablenotes}
    \end{threeparttable}
\end{table}

\newpage
\begin{table}[H]
  \centering
  \begin{threeparttable}
    \centering
    \small
    \caption{Quality of care and client satisfaction by counselling style.}
    \input{tables/TabS8-quality-of-care-fullfupsample.tex} 
    \label{tab:quality-of-care-satisfaction}
  \begin{tablenotes}
    \small
    \setlength\labelsep{0pt}
    \item Notes: The data shown in this table uses data from the 2-week follow-up interviews for the follow-up cohort - i.e. the sample of clients counselled between the $19^{th}$ of January 2021 and the $29^{th}$ of June 2022. These clients were enrolled into the study during the adaptive experiment phase, so all estimates are weighted by the inverse probability of assignment of their assigned treatment arm. The ‘Diff’ column, column 4, shows the p-value from a t-test of the difference in means between the IDM and SDM groups. The quality of care index is calculated following \cite{jain2019validation}, where each sub-index is obtained by averaging over the components within the domain and the overall index is obtained by averaging across the four domain domain indices, equally weighted; the audio and visual privacy index reflects the respectful care domain from Jain et al. The measures of client satisfaction with the services provided indicate the fraction of clients who are satisfied, or very satisfied with FP services and general and with the FP consultation specifically, as well as the clients who are likely, or very likely to return to the study hospital for FP services in the future. 
  \end{tablenotes}
  \end{threeparttable}
\end{table}

\newpage
\begin{table}[H]
  \centering
      \begin{adjustbox}{max width=\linewidth}
    \begin{threeparttable}
        \small
      \caption{   Heterogeneity of impacts of price discounts.}
      \input{tables/TabS9-impact-het-main-discount.tex} 
      \label{tab:impact-het-main-discount} 
      \begin{tablenotes} 
        \small
        \setlength\labelsep{0pt}
        \item Notes: Robust standard error in parentheses; Discounted prices for LARCs were offered at CFA 2,000, 1,000, 150, and free; Discounted prices for SARCs were offered at no cost; all sets of columns show the estimated coefficients for the group-specific impacts of LARC prices estimated from a single regression on the outcome on LARC prices interacted with a group indicator; regressions shown in columns 1 and 2 report results from interacting LARC prices with the department where the client was received as the group indicator, separated as Family Planning and Maternity/Gynecology+others; regressions in columns 3 and 4 use an indicator for the age group; regression in columns 5 and 6 use an indicator for marital status, separated as Married/Cohabiting and Single.
      \end{tablenotes}
    \end{threeparttable}
      \end{adjustbox}
  \end{table}
  
% Figures
\newpage
\begin{figure}[H]
    \centering
    \includegraphics[width=\textwidth]{figures/FigS1-view-prices-disaggregated-cat.png}
    \caption{\textbf{Impact of LARC prices on LARC adoptions.} The figure shows the fraction of clients who adopted a LARC during the study period under \textit{Free}, \textit{Discounted}, and \textit{Full} priced LARCs across counseling styles. The lines above the bars show the estimate (d) and p-value (p) from a t-test of the difference in means between the two indicated groups.}
    \label{fig:vp-free-discounted}
\end{figure}

\newpage
\begin{figure}[H]
    \centering
    \includegraphics[width=\textwidth]{figures/FigS2-view-prices-sarcs-narrow.png}
    \caption{\textbf{Impact of LARC prices on SARC adoptions.} The figure shows the fraction of clients who adopted a SARC under \textit{Discounted}, and \textit{Full} priced LARCs across counseling styles. The ``narrow'' definitions refers to SARCs as defined in our study and includes the Pill (POP or COC) and the Injectable. The lines above the bars show the estimate (d) and p-value (p) from a t-test of the difference in means between the two indicated groups. The bar labeled \textit{DiD} indicates the difference-in-differences estimate between the two randomized counseling interventions (\textit{IDM-SDM}) and LARC price discounts (\textit{Full-Discounted}).}
    \label{fig:vp-SARCs-narrow}
\end{figure}

\newpage
\begin{figure}[H]
    \centering
    \includegraphics[width=.8\textwidth]{figures/FigS3-view-prices-sarcs-broad.png}
    \caption{\textbf{Impact of LARC prices on SARC adoptions.} The figure shows the fraction of clients who adopted a SARC under \textit{Discounted}, and \textit{Full} priced LARCs across counseling styles. The ``broad'' definitions refers to a definition of SARCs which includes the Pill (POP or COC), the Injectable, Condoms, the Standard Days Methods, and Emergency contraception. The lines above the bars show the estimate (d) and p-value (p) from a t-test of the difference in means between the two indicated groups. The bar labeled \textit{DiD} indicates the difference-in-differences estimate between the two randomized counseling interventions (\textit{IDM-SDM}) and LARC price discounts (\textit{Full-Discounted}).} 
    \label{fig:vp-SARCs-broad}
\end{figure}

\newpage
\begin{figure}[H]
    \centering
    \includegraphics[width=\textwidth]{figures/FigS4-view-prices-larc-firstvisit-tests.png}
    \caption{\textbf{Impact of LARC prices on LARC adoptions, on Day 1.} The figure shows the fraction of clients who adopted a LARC on the day of their first counselling session during the study period, \textit{Discounted}, and \textit{Full} priced LARCs across counseling styles. The lines above the bars show the estimate (d) and p-value (p) from a t-test of the difference in means between the two indicated groups. The bar labeled \textit{DiD} indicates the difference-in-differences estimate between the two randomized counseling interventions (\textit{IDM-SDM}) and LARC price discounts (\textit{Full-Discounted}).}
    \label{fig:vp-first-visit}
\end{figure}

\newpage
\begin{figure}[H]
    \centering
    \includegraphics[width=\textwidth]{figures/FigS5-pilot_larc_vd.png}
    \caption{\textbf{Impact on LARC adoptions over time.} The figure shows the share of clients who were using a LARC at any point in time between their first counselling session during the study period and the following 180 days. The data is based on administrative data collected at the hospital, tracking each client across visits. }
    \label{fig:impacts-time}
\end{figure}

\newpage
\begin{figure}[H]
	\centering
	\includegraphics[width=\textwidth]{figures/FigS6-view_trm_decomp.png}
	\caption{\textbf{Distribution of number of methods discussed combined with rankings by SDM and IDM regimes.} The figure illustrates the distribution of the number of methods discussed and their rankings for clients under both regimes. Discussion is divided into four categories: discussed no methods, discussed one method, discussed two methods, and discussed three or more methods.}
	\label{fig:view_trm_decomp} 
\end{figure}

\newpage
\begin{figure}[H]
	\centering
	\includegraphics[width=\textwidth]{figures/FigS7-app_d_all.png}
	\caption{\textbf{Distribution of method discussion by SDM and IDM regimes.} The figure provides a breakdown of the fraction of clients who discussed each method in detail under both regimes.}
	\label{fig:app_d_all}
\end{figure}


%-----------------------------------------------------------------
% END ------------------------------------------------------------
%-----------------------------------------------------------------

%-----------------------------------------------------------------
\end{document}
%-----------------------------------------------------------------